#!/bin/bash

IPVS_MODS_DIR="/usr/lib/modules/$(uname -r)/kernel/net/netfilter/ipvs"
for i in $(ls $IPVS_MODS_DIR | grep -o "^[^.]*")
do
	/sbin/modinfo -F filename $i &>/dev/null
	if [ $? -eq 0 ];then
		echo $i
		/sbin/modprobe $i
	fi
done
